-
Notifications
You must be signed in to change notification settings - Fork 475
fix: Multiple improvements + docs update #698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It's ready for re-review. I haven't touch the code regarding error handling, since it handles all platforms equally. If you'd rather not throw the same error for every batched |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a single nit. Looks good otherwise.
cfd7639
to
dab59bc
Compare
🎉 This PR is included in version 1.15.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Where are you seeing that Room 2.4.0 requires compileSdk 31? |
Summary
Sorry for pushing it into one PR. Got a couple of fixes/improvements coming:
Fixed the issue where
multiGet
did not propagate errors correctly, meaning they were just ignored. #634This also changes the way it handles the error from original design - previously, if we'd call many
multiGet
for different keys, they'll be batched into one native call. If any of them failed, the rest of them fail too, but, only the failed one will get the error message, while the rest will be resolved asundefined
values, creating false negatives. This is now changed, so that once one multiGet fails, every other batched call will throw the same error.Bumped the dependencies for Next storage (Kotlin, Room, Coroutines). #684
I tried to get everything to the latest version. Turns out, Room, with version 2.4.0 (where Apple M1 support is fixed) needs also increased
compileSdk
version bumped to 31 (latest one). It'd be bad for a library to dictate this version, so instead hardcoding it to 2.4.0, I made it 2.3.0. However, I added afeature flag
, so that developer can set this version manually. (cc @Daavidaviid)Updated documentation
Since we had a few issues raised about size limits, I added a section in our documentation about it.